<?php
/**
 * RedCross Application
 *
 * @copyright Copyright (c) 2010, Kristian Stokke Tryggestad, Rune Vikestad, Andreas Flaten Wist, Simen Nicolai Echholt, Ole Henrik Jahren
 */


class Core_Form_Filter extends RedCross_Form
{
    public function init()
    {
        $this->setAttrib('id', 'filter_form');

        $this->addElement('select', 'filter', array(
            'required'  =>  true,
            'label'     =>  '',
            'onChange' => 'submit()'
        ));
    }

    public function fillForm(array $options)
    {
        $this->getElement('filter')->addMultiOptions($options);
    }
}
